package com.example.xm.servive.impl;

import com.example.xm.Entity.Dz;
import com.example.xm.mapper.DzMapper;
import com.example.xm.servive.DzServive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DzServiveImpl implements DzServive {

    @Autowired
    DzMapper dzMapper;

    @Override
    public List<Dz> getAllDz(Dz dz) {
        return dzMapper.getAllDz(dz);
    }

    @Override
    public int Add(Dz dz) {
        return dzMapper.Add(dz);
    }

    @Override
    public Dz getDzId(String id) {
        return dzMapper.getDzId(id);
    }

    @Override
    public int Update(Dz dz) {
        return dzMapper.Update(dz);
    }
}
